﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MyMaster.Master" AutoEventWireup="true"
    CodeBehind="ContentManageChildMenuEdit.aspx.cs" Inherits="FashionMural.Admin.ContentManageChildMenuEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" runat="server">
    <%--    <asp:TreeView ID="BarMenu" runat="server">
    </asp:TreeView>--%>
    <script type="text/javascript">
        $().ready(function () {
            DynamicBuildPageTreeView("pageTreeDiv");
            var dyflag = true;
            $("div.leftMenuTitle").click(function () {
                if (dyflag) {
                    $(this).next(".leftMenu").hide();
                    dyflag = false;
                } else {
                    $(this).next(".leftMenu").show();
                    dyflag = true;
                }
            });

        });
    </script>
    <div id="pageTreeDiv">
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" runat="server">
    <script type="text/javascript" src="Xheditor/xheditor-1.1.13-zh-cn.min.js"></script>
    <script type="text/javascript">
        function deletePage(id) {
            $.ajax({
                async: false,
                type: "GET",
                url: "/jsserver/page/delete.aspx",
                data: { id: id },
                success: function (data) {
                    alert('删除成功！');
                }
            });
        }

        function savewebsiteinfofun(id) {
            $.ajax({
                type: "POST",
                async: false,
                url: "/jsserver/page/update.aspx",
                data: { id: id, name: $("#inputwebsitename").val(),pagetype:$("#pagetype").val(),smallphopath:$("#pagesmallphopath").val(),pagedescribe:$("#pagedescribe").val(), phocontent:$("#pagesmallpho").xheditor().getSource() },
                success: function (data) {
                    if (data == "True") {
                        alert('保存成功！');
                        $("#labelwebsitename")[0].innerText = $("#inputwebsitename").val();
                        hidewebsitename();
                    } else {
                        alert('保存失败，请重新修改！');
                    }
                },
                error: function () {
                    alert('保存失败，请重新修改！');
                }
            });
        }

        function showwebsitename() {
            $("#labelwebsitename").hide();
            $("#inputwebsitename").show();
        }

        function hidewebsitename() {
            $("#labelwebsitename").show();
            $("#inputwebsitename").hide();
        }

        function showEditTable(id) {
            $("#contentedit").hide();
            $("#siglephototext").hide();
            $("#newsinfolist").hide();
            $("#imagesinfolist").hide();
            $("#outlinklist").hide();
            $("#" + id).show();
        }

        function initBaseConfig() {
            //websitename show or hide
            $("#labelwebsitename").show();
            $("#inputwebsitename").hide();
            $("#pagesmallphotd").hide();
            $("#pagedescribe").hide();
            $("#pagedescribe").val("<%=CurrentPage.PageDescribe %>");
            
//            $("#pagesmallpho").xheditor().setSource("");//this init is before ready init,so if this space have value the xheditor will be full tools
            $("#pagesmallphopath").val("<%=CurrentPage.SmallPhotoPath %>");
            var menuTypes = GetMenuTypes();
            for(i=0;i<menuTypes.length;i++){
                $("#pagetype").append("<option value='"+menuTypes[i].Id+"'>"+menuTypes[i].PageTypeName+"</option>");
            }
            var typevalue = <%=CurrentPage.PageTypeId %>
            $("#pagetype").find("option[value='"+typevalue+"']").attr("selected",true);            
            $("#editwebinfo").click(function () {
                showwebsitename();
                $("#pagesmallphotd").show();
                $("#pagedescribe").show();
//                var data = <%=CurrentPage.Bac1 %>;
//                $("#pagesmallpho").xheditor({tools:'Img',
//                width: 200,
//                height: 20,
//                upImgUrl:"/upload.aspx?fileflag=imagelist",//?fileflag=sigle
//                upImgExt:".jpg",
//                onUpload:UploadImageCallBackFun1}).setSource(data);
var bac1 = $("#pagesmallpho").xheditor().formatXHTML('"<%=CurrentPage.Bac1 %>"');      
$("#pagesmallpho").xheditor().setSource(bac1);        
            });
            $("#canceledit").click(function () {
                hidewebsitename();
                $("#pagesmallphotd").hide();
                $("#pagedescribe").hide();
            });
        }

        function initWebContentEditSpace() {
            $("#contentedit").hide();
            $("#siglephototext").hide();
            $("#newsinfolist").hide();
            $("#imagesinfolist").hide();
            $("#outlinklist").hide();
            $("#contentedit").show();
        }

        function initMenuShow() {
        $("#mainMenu a").hide();
            var type = <%=CurrentPage.PageTypeId %>
            $("#baseconfig").show();
            if (type == 1){
                $("#sigleconfig").show();
            }
            if (type == 2){
                $("#newsconfig").show();
            }
            if (type == 3){
                $("#outlinkconfig").show();
            }
            if (type == 4){
                $("#photoconfig").show();
            }
        }

        function GetXheditorContent(id){
        var date = new Date();
            $.ajax({
            type: "GET",
                async: true,
                url: "/jsserver/page/html.aspx",
                data: { id: id, freshflag:date.getMilliseconds() },
                success: function (data) {
                    var temp = eval("("+data+")");
                    showPageHtml(temp);
                },
                error: function () {
//                    alert('获取信息失败，请联系管理员！');
                }
            });
        }

        function showPageHtml(data){
            if (data != null){
            $("#htmltitle").val(data.Title);
            $("#htmlcommend").find("option[value='"+data.Commend+"']").attr("selected",true);
            $("#htmlweight").val(data.Weight);
            $("#htmldescribe").val(data.Describe);
            $("#htmlblockname").val(data.BlockName);
            $("#textareacontent").xheditor().setSource(data.Content);
            }else{
                var a = data;
            }
        }

        function updateHtml(id){
            $.ajax({
            type: "POST",
                async: false,
                url: "/jsserver/html/update.aspx",
                data: { belongId: id, title:$("#htmltitle").val(),content:$("#textareacontent").xheditor().getSource(),commend:$("#htmlcommend").val(),weight:$("#htmlweight").val(),describe:$("#htmldescribe").val(),blockname:$("#htmlblockname").val()},
                success: function (data) {
                    if (data == "True") {
                        alert('保存成功！');                        
                    } else {
                        alert('保存失败，请重新修改！');
                    }
                },
                error: function () {
                    alert('保存失败，请重新修改！');
                }
            });
        }

        /**********news edit function****************/
        function getNewsEditList(id){
        var date = new Date();
            $.ajax({
            type: "GET",
                async: true,
                url: "/jsserver/page/news.aspx",
                data: { id: id, freshflag:date.getMilliseconds() },
                success: function (data) {
                    var temp = eval("("+data+")");
                    showNewsList(temp);
                },
                error: function () {
                    alert('获取信息失败，请联系管理员！');
                }
            });
        }

        function showNewsList(data){
            if(data != null){
            var trs = $("#newsadd").parent().children();
            if(trs.length >2){
            for(j=0;j<trs.length-1;j++){
                $(trs[j+1]).remove();
            }
            }
                for(i=0;i<data.length;i++){
                    $("#newsadd").after("<tr id='newsaddtr"+data[i].Id+"'><td id='addnews"+data[i].Id+"'>"+data[i].Title+"</td><td>"+data[i].Weight+
                    "</td><td><label id='editlabel"+data[i].Id+"' pid='"+data[i].Id+
                    "' onclick='labelButtonShowOne("+data[i].Id+")' style='background-color: #D7D7D7; width: 20px; height: 10px; border: 1px solid Balck;margin-right: 2px; cursor: pointer;'>编辑</label><label id='deletepageinfo"+data[i].Id+
                    "' pid='"+data[i].Id+
                    "' onclick='deleteNews("+data[i].Id+")' style='background-color: #D7D7D7; width: 20px; height: 10px; border: 1px solid Balck; cursor: pointer;'>删除</label></td></tr>");
                }
            }
        }

        function Getnews(id){
        var result;
        var date = new Date();
            $.ajax({
            type: "GET",
                async: false,
                url: "/jsserver/news/sigle.aspx",
                data: { id: id, freshflag:date.getMilliseconds() },
                success: function (data) {
                    var temp = eval("("+data+")");
                    result = temp;
                },
                error: function () {
                    result = null;
                }
            });
            return result;
        }

                function labelButtonShowOne(id) {
                            $("#jumpdiv").show();
                            showJumpDiv(id);
        }

        function deleteHtml(id){
        $.ajax({
                async: false,
                type: "GET",
                url: "/jsserver/html/delete.aspx",
                data: { id: id },
                success: function (data) {
                    if(data == "True"){
                        alert('删除成功！');
                        $("#newsaddtr"+id).remove();
                    }
                }
            });
        }

        function deleteNews(id){
                $.ajax({
                async: false,
                type: "GET",
                url: "/jsserver/news/delete.aspx",
                data: { id: id },
                success: function (data) {
                    if(data == "True"){
                        alert('删除成功！');
                        $("#newsaddtr"+id).remove();
                    }
                }
            });
        }
        /*************************************/

        /********************jump div**********************/
         function showJumpDiv(id) {
            var data = Getnews(id);
            if(data != null){
                        $("#newsTitle").val(data.Title);
//            $("#newsContent").val(data.Content);
            $("#newsContent").xheditor().setSource(data.Content);
            $("#newsCommend").find("option[value='"+data.Commend+"']").attr("selected",true);
            $("#newsweight").val(data.Weight);
            $("#newsdescribe").val(data.Describe);
//            $("#belongBlockName").val(data.BlockName);
$("#belongBlockName").find("option[value='"+data.BlockName+"']").attr("selected",true);
            $('#updatemenubtnnews').unbind("click"); 
            $("#updatemenubtnnews").click(function () {
                updateNews(id);
            });
            }
        }

        function showAddJumpDiv(){
            $("#jumpdiv").show();
            $('#updatemenubtnnews').unbind("click"); 
            $("#updatemenubtnnews").click(function () {
                        var title = $("#newsTitle").val();
//            var content = $("#newsContent").val();
            var content = $("#newsContent").xheditor().getSource();
            var commend = $("#newsCommend").val();
            var weight = $("#newsweight").val();
            var describe = $("#newsdescribe").val();
            var blockname = $("#belongBlockName").val();
                addNews(title,content,commend,weight,describe,blockname);
            });
        }

        function updateNews(id) {
            var title = $("#newsTitle").val();
//            var content = $("#newsContent").val();
var content = $("#newsContent").xheditor().getSource();
            var commend = $("#newsCommend").val();
            var weight = $("#newsweight").val();
            var describe = $("#newsdescribe").val();
            var balockname = $("#belongBlockName").val();
            $.ajax({
                type: "POST",
                url: "/jsserver/news/update.aspx",
                data: { id: id, title:title,content:content,commend:commend,weight:weight,describe:describe,blockname:balockname},
                success: function (data) {
                    if(data == "True"){
                        location.reload();
                    }
                },
                error: function () {
                    alert('保存失败，请重新修改！');
                }
            });
        }

        function addNews(title, content, commend, weight, describe, blockname){
            var belongid = <%=CurrentPage.Id %>;
            if(weight == ''){
                weight = 0;
            }
            $.ajax({
                type: "POST",
                url: "/jsserver/news/add.aspx",
                data: { belongid:belongid, title:title,content:content,commend:commend,weight:weight,describe:describe,blockname:blockname},
                success: function (data) {
                    if(data > 0){
                        location.reload();
                    }
                },
                error: function () {
                    alert('保存失败，请重新修改！');
                }
            });
        }
        /*******************************************/

        /************************shwo image jump div*******************************/
        function GetImageData(id){
            var result;
            var date = new Date();
            $.ajax({
            type: "GET",
                async: false,
                url: "/jsserver/page/images.aspx",
                data: { pageId: id, freshflag:date.getMilliseconds() },
                success: function (data) {
                    var temp = eval("("+data+")");
                    result = temp;
                },
                error: function () {
                    result = null;
                }
            });
            return result;
        }

        function showImageList(data){
            if(data != null){
            var trs = $("#imageadd").parent().children();
            if(trs.length >2){
            for(j=0;j<trs.length-1;j++){
                $(trs[j+1]).remove();
            }
            }
                for(i=0;i<data.length;i++){
                    $("#imageadd").after("<tr id='imagesaddtr"+data[i].Id+"'><td id='addimages"+data[i].Id+"'>"+data[i].Title+"</td><td>"+data[i].Weight+
                    "</td><td><label id='editlabel"+data[i].Id+"' pid='"+data[i].Id+
                    "' onclick='showJumpdivImages("+data[i].Id+")' style='background-color: #D7D7D7; width: 20px; height: 10px; border: 1px solid Balck;margin-right: 2px; cursor: pointer;'>编辑</label><label id='deletepageinfo"+data[i].Id+
                    "' pid='"+data[i].Id+
                    "' onclick='deleteIamge("+data[i].Id+")' style='background-color: #D7D7D7; width: 20px; height: 10px; border: 1px solid Balck; cursor: pointer;'>删除</label></td></tr>");
                }
            }
        }

        function initImageList(id){
            var data = GetImageData(id);
            showImageList(data);
        }

        function showJumpdivImages(id){
            var date = new Date();
            $.ajax({
            type: "GET",
                async: false,
                url: "/jsserver/image/sigle.aspx",
                data: { id: id, freshflag:date.getMilliseconds() },
                success: function (data) {
                    var temp = eval("("+data+")");
                    fillUpdateImageDiv(temp);
                },
                error: function () {
                    
                }
            });
        }

        function fillUpdateImageDiv(data){
            if (data != null){
            $("#imageTitle").val(data.Title);
            $("#imagePath").val(data.Path);
            $("#imageCommend").find("option[value='"+data.Commend+"']").attr("selected",true);
            $("#imageWeight").val(data.Weight);
//            $("#imageDescribe").val(data.Describe);
$("#imageDescribe").xheditor().setSource(data.Describe);
            $("#imageBelongBlockName").val(data.BlockName);
            $("#updateimage").unbind("click");
            $("#updateimage").click(function(){
                updateImageInfo(data.Id);
            });
            }
            $("#jumpdivImages").show();
        }

        function showAddImageDiv(){
            $("#imageTitle").val('');
            $("#imagePath").val('');
            $("#imageCommend").val('');
            $("#imageWeight").val('');
//            $("#imageDescribe").val('');
$("#imageDescribe").xheditor().setSource("");
            $("#imageBelongBlockName").val('');
            $("#jumpdivImages").show();
            $("#updateimage").unbind("click");
            $("#updateimage").click(function(){
                addImage();
            });
        }

        function addImage(){
            var title = $("#imageTitle").val();
            var path = $("#imagePath").val();
            var commend = $("#imageCommend").val();
            var weight = $("#imageWeight").val();
//            var describe = $("#imageDescribe").val();
var describe = $("#imageDescribe").xheditor().getSource();
            var blockname = $("#imageBelongBlockName").val();
            var belongid = <%=CurrentPage.Id %>;
            $.ajax({
                type: "POST",
                url: "/jsserver/image/add.aspx",
                data: { belongid:belongid,path:path, title:title,commend:commend,weight:weight,describe:describe,blockname:blockname},
                success: function (data) {
                    if(data > 0){
                        location.reload();
                    }
                },
                error: function () {
                    alert('保存失败，请重新修改！');
                }
            });
        }

        function updateImageInfo(id){
            var title = $("#imageTitle").val();
            var path = $("#imagePath").val();
            var commend = $("#imageCommend").val();
            var weight = $("#imageWeight").val();
//            var describe = $("#imageDescribe").val();
var describe = $("#imageDescribe").xheditor().getSource();
            var blockname = $("#imageBelongBlockName").val();
            $.ajax({
                type: "POST",
                url: "/jsserver/image/update.aspx",
                data: { id:id,path:path, title:title,commend:commend,weight:weight,describe:describe,blockname:blockname},
                success: function (data) {
                    if(data == "True"){
                        location.reload();
                    }else{
                        alert('保存失败，请重新修改！');
                    }
                },
                error: function () {
                    alert('保存失败，请重新修改！');
                }
            });
        }

        function deleteIamge(id){
            $.ajax({
            type: "GET",
                async: false,
                url: "/jsserver/iamge/delete.aspx",
                data: { id: id},
                success: function (data) {
                    if(data == "True"){
                        $("#imagesaddtr"+id).remove();
                    }
                },
                error: function () {
                    
                }
            });
        }

        
        /**************************upload image*********************************/
        function UploadImageCallBackFun(msg){
            $("#imagePath").val(msg);
        }

        function UploadImageCallBackFun1(msg){
            $("#pagesmallphopath").val(msg);
        }

        /*******************************************************/


        $().ready(function () {
            //init jumpDiv
            $("#jumpdiv").hide();
            $("#jumpdivImages").hide();

            //eheditor
            $("#textareacontent").xheditor({
                width: 770,
                height: 400,
                upImgUrl:"/upload.aspx?fileflag=sigle",//?fileflag=sigle
                upImgExt:".jpg"
            });

            $("#imageTextArea").xheditor({
            tools:'Img',
                width: 200,
                height: 100,
                upImgUrl:"/upload.aspx?fileflag=imagelist",//?fileflag=sigle
                upImgExt:".jpg",
                onUpload:UploadImageCallBackFun
            });

            $("#newsContent").xheditor({
//                width: 200,
//                height: 20,
                upImgUrl:"/upload.aspx?fileflag=sigle",//?fileflag=sigle
                upImgExt:".jpg"
            });

            $("#imageDescribe").xheditor({
                upImgUrl:"/upload.aspx?fileflag=sigle",//?fileflag=sigle
                upImgExt:".jpg"
            });

            $("#pagesmallpho").xheditor({
            tools:'Img',
                width: 200,
                height: 100,
                upImgUrl:"/upload.aspx?fileflag=imagelist",//?fileflag=sigle
                upImgExt:".jpg",
                onUpload:UploadImageCallBackFun1
            });

                        //init base config
            initBaseConfig();

            //init contentedit space
            initWebContentEditSpace();

            //init menu
            initMenuShow();
        });
    </script>
    <div id="mainMenu">
        <ul>
            <li><a id="baseconfig" href="#" style="cursor: pointer;" onclick="showEditTable('contentedit')">
                基本配置</a></li><li><a id="sigleconfig" href="#" style="cursor: pointer;" onclick="showEditTable('siglephototext');GetXheditorContent(<%=CurrentPage.Id %>);">
                    单页内容配置</a></li><li><a id="newsconfig" href="#" style="cursor: pointer;" onclick="showEditTable('newsinfolist');getNewsEditList(<%=CurrentPage.Id %>);">
                        新闻页面配置</a></li><li><a id="photoconfig" href="#" style="cursor: pointer;" onclick="showEditTable('imagesinfolist');initImageList(<%=CurrentPage.Id %>)">
                            图片页面配置</a></li><li><a id="outlinkconfig" href="#" style="cursor: pointer;" onclick="showEditTable('outlinklist')">
                                外部链接配置</a></li></ul>
    </div>
    <div id="main">
        <asp:Label ID="Msg" runat="server" Text="" CssClass="msg" Visible="False"></asp:Label>
        <table class="mainTable" id="contentedit">
            <tr style="background-color: #D7D7D7;">
                <th colspan="2">
                    <%=CurrentPage.PageName + "基本信息"%>
                </th>
            </tr>
            <tr>
                <td style="width: 20%; text-align: right;">
                    网站名称:
                </td>
                <td>
                    <label id="labelwebsitename">
                        <%=CurrentPage.PageName %></label>
                    <input id="inputwebsitename" type="text" value="<%=CurrentPage.PageName %>" />&nbsp;
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    页面小图:
                </td>
                <td>
                    <div id="pagesmallphotd">
                        <input type="hidden" id="pagesmallphopath" /><textarea id="pagesmallpho"></textarea></div>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    页面类型:
                </td>
                <td>
                    <%--<%=GetPageType(CurrentPage.PageTypeId).PageTypeName %>&nbsp;--%>
                    <select id="pagetype">
                    </select>
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    父页面:
                </td>
                <td>
                    <%=GetPage(CurrentPage.ParentId).PageName %>&nbsp;
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    页面描述:
                </td>
                <td>
                    <textarea id="pagedescribe"></textarea>&nbsp;
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    是否显示:
                </td>
                <td>
                    <%=CurrentPage.ShowOnNar %>&nbsp;
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    是否新窗口打开:
                </td>
                <td>
                    <%=CurrentPage.NewWindow %>&nbsp;
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    &nbsp;
                </td>
                <td>
                    <%--                    <asp:Button ID="savewebsiteinfo" runat="server" BackColor="#D7D7D7" CssClass="btn"
                        Text="保存信息" />
                    <asp:Button ID="canceledit" runat="server" BackColor="#D7D7D7" CssClass="btn" Text="取消" />--%>
                    <input id="editwebinfo" type="button" style="background-color: #D7D7D7; border: 1px solid Balck;
                        cursor: pointer;" value="编辑" />
                    <input id="savewebsiteinfo" type="button" style="background-color: #D7D7D7; border: 1px solid Balck;
                        cursor: pointer;" value="保存" onclick="savewebsiteinfofun(<%=CurrentPage.Id %>)" />
                    <input id="canceledit" type="button" style="background-color: #D7D7D7; border: 1px solid Balck;
                        cursor: pointer;" value="取消" />
                </td>
            </tr>
        </table>
        <table class="mainTable" id="siglephototext">
            <tr style="background-color: #D7D7D7;">
                <th colspan="2">
                    <%=CurrentPage.PageName + "单页图文"%>
                </th>
            </tr>
            <tr>
                <td style="width: 20%; text-align: right;">
                    内容标题:
                </td>
                <td style="text-align: left;">
                    <input id="htmltitle" type="text" />&nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 20%; text-align: right;">
                    是否推荐:
                </td>
                <td style="text-align: left;">
                    <select id="htmlcommend">
                        <option id="y" value="True">是</option>
                        <option id="n" value="False">否</option>
                    </select>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 20%; text-align: right;">
                    权重:
                </td>
                <td style="text-align: left;">
                    <input id="htmlweight" type="text" />输入数字：1,2...
                </td>
            </tr>
            <tr>
                <td style="width: 20%; text-align: right;">
                    描述:
                </td>
                <td style="text-align: left;">
                    <input id="htmldescribe" type="text" />&nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 20%; text-align: right;">
                    模块名称:
                </td>
                <td style="text-align: left;">
                    <input id="htmlblockname" type="text" />&nbsp;
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    内容编辑:
                </td>
                <td style="text-align: left">
                    <textarea id="textareacontent" name="singleeditcontent" rows="0"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input id="siglesave" type="button" style="background-color: #D7D7D7; border: 1px solid Balck;
                        cursor: pointer;" value="保存" onclick="updateHtml(<%=CurrentPage.Id %>)" />
                </td>
            </tr>
        </table>
        <table class="mainTable" id="newsinfolist">
            <tr id="newsadd" style="background-color: #D7D7D7;">
                <td>
                    内容标题
                </td>
                <td>
                    权重
                </td>
                <td>
                    操作
                </td>
            </tr>
            <tr id="newsaddbtntr">
                <td colspan="3">
                    <input id="addnewsbtn" type="button" value="添加新闻" style="background-color: #D7D7D7;"
                        onclick="showAddJumpDiv();" />
                </td>
            </tr>
        </table>
        <table class="mainTable" id="imagesinfolist">
            <tr id="imageadd" style="background-color: #D7D7D7;">
                <td>
                    内容标题
                </td>
                <td>
                    权重
                </td>
                <td>
                    操作
                </td>
            </tr>
            <tr id="imageaddbtntr">
                <td colspan="3">
                    <input id="addimagebtn" type="button" value="添加图片" style="background-color: #D7D7D7;"
                        onclick="showAddImageDiv()" />
                </td>
            </tr>
        </table>
        <table class="mainTable" id="outlinklist">
            <tr style="background-color: #D7D7D7;">
                <th colspan="1">
                    <%=CurrentPage.PageName + "新闻信息"%>
                </th>
            </tr>
            <tr>
                <th>
                </th>
            </tr>
            <tr>
                <td>
                    <input id="Button4" type="button" style="background-color: #D7D7D7; border: 1px solid Balck;
                        cursor: pointer;" value="编辑" />
                    <input id="Button5" type="button" style="background-color: #D7D7D7; border: 1px solid Balck;
                        cursor: pointer;" value="保存" onclick="savewebsiteinfofun(<%=CurrentPage.Id %>)" />
                    <input id="Button6" type="button" style="background-color: #D7D7D7; border: 1px solid Balck;
                        cursor: pointer;" value="取消" />
                </td>
            </tr>
        </table>
    </div>
    <div id="jumpdiv" class="jumpdiv-back">
        <div class="jumpdiv-forward">
            <table>
                <tr>
                    <td style="width: 20%; text-align: right">
                        新闻标题:
                    </td>
                    <td>
                        <input id="newsTitle" type="text" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        新闻内容:
                    </td>
                    <td>
                        <textarea id="newsContent" style="width: 300px; height: 100px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        所属页面:
                    </td>
                    <td style="text-align: center">
                        <label>
                            <%=CurrentPage.PageName %></label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        是否推荐:
                    </td>
                    <td style="text-align: center">
                        <select id="newsCommend">
                            <option value="True">是</option>
                            <option value="False" selected="selected">否</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        权重:
                    </td>
                    <td style="text-align: center">
                        <input id="newsweight" type="text" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        描述信息:
                    </td>
                    <td style="text-align: center">
                        <textarea id="newsdescribe" style="width: 300px; height: 100px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        所属模块:
                    </td>
                    <td style="text-align: center">
                        <%--<input id="belongBlockName" type="text" />--%>
                        <select id="belongBlockName">
                            <option value="CompanyNews">公司动态</option>
                            <option value="TradeNews">行业动态</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <input type="button" style="width: 15%; background-color: #D7D7D7; cursor: pointer;"
                            id="updatemenubtnnews" value="更新" />
                        <input type="button" style="width: 15%; background-color: #D7D7D7; cursor: pointer;"
                            onclick="$('#jumpdiv').hide();" id="cancelupdatemenubtn" value="取消" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div id="jumpdivImages" class="jumpdiv-back">
        <div class="jumpdiv-forward">
            <table>
                <tr>
                    <td style="width: 20%; text-align: right">
                        图片标题:
                    </td>
                    <td>
                        <input id="imageTitle" type="text" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        图片路径:
                    </td>
                    <td>
                        <input id="imagePath" type="text" style="visibility: hidden;" /><textarea id="imageTextArea"
                            name="imageArea"></textarea>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        所属页面:
                    </td>
                    <td style="text-align: center">
                        <label>
                            <%=CurrentPage.PageName %></label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        是否推荐:
                    </td>
                    <td style="text-align: center">
                        <select id="imageCommend">
                            <option value="True">是</option>
                            <option value="False" selected="selected">否</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        权重:
                    </td>
                    <td style="text-align: center">
                        <input id="imageWeight" type="text" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        描述信息:
                    </td>
                    <td style="text-align: center">
                        <textarea id="imageDescribe" style="width: 300px; height: 100px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%; text-align: right">
                        所属模块:
                    </td>
                    <td style="text-align: center">
                        <input id="imageBelongBlockName" type="text" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <input type="button" style="width: 15%; background-color: #D7D7D7; cursor: pointer;"
                            id="updateimage" value="更新" />
                        <input type="button" style="width: 15%; background-color: #D7D7D7; cursor: pointer;"
                            onclick="$('#jumpdivImages').hide();" id="Button8" value="取消" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
